package Day_arrys;

/**
 * description: Test01 <br>
 * date: 2022/1/31 4:22 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */

public class Test01 {
    public static void main(String[] args) {
        int[] arr01 = new int[10];
        String arry02[] = new String[5];


        arr01[0] = 13;
        arr01[1] = 15;
        arr01[2] = 20;
        for (int i = 0; i < arr01.length; i++) {
            arr01[i] = 10 * i;

        }
        for (int i = 0; i < arr01.length; i++) {
            System.out.println(arr01[i]);
        }
        System.out.println("------------------");
        User[] arry03 = new User[3];
        arry03[0] = new User(1001, "zs");
        arry03[1] = new User(1002, "ls");
        arry03[2] = new User(1003, "ws");

        for (int i = 0; i < arry03.length; i++) {
            System.out.println(arry03[i].getId());
            System.out.println("--------------------");
            System.out.println(arry03[i].getName());
        }
    }
}

